package com.wx.chat.service.impl;


import com.wx.chat.dao.LoginDao;
import com.wx.chat.model.UserEntity;
import com.wx.chat.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * desc
 *
 * @Auther 田艺鹏
 * @DateTime 2020-08-07 18:10
 */
@Service("loginService")
public class LoginServiceImpl implements LoginService {
    @Autowired
    private LoginDao loginDao;

    @Override
    public UserEntity login( UserEntity userEntity) {
        return loginDao.login(userEntity);
    }

    @Override
    public int register(UserEntity userEntity) {
        return loginDao.register(userEntity);
    }

    @Override
    public UserEntity checkUser(String userId) {
        return loginDao.checkUser(userId);
    }
}
